//
//  TKIMAcceptOrderTip.m
//  TKIM_标准版
//
//  Created by thinkive on 16/4/15.
//  Copyright © 2016年 liupm. All rights reserved.
//

#import "TKIMAcceptOrderTip.h"

@interface TKIMAcceptOrderTip()
@property(nonatomic,strong)UILabel * titleLable;
@property(nonatomic,strong)UIActivityIndicatorView * indicator;
@end
@implementation TKIMAcceptOrderTip

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.layer.cornerRadius = 8;
        self.layer.masksToBounds = YES;
        self.backgroundColor = [TKIMColorHelper stringToColor:@"#666666"];
    }
    return self;
}

-(UILabel *)titleLable
{
    if (!_titleLable) {
        _titleLable = [[UILabel alloc] init];
        _titleLable.text = @"消息收取中";
        _titleLable.font = [UIFont systemFontOfSize:15];
        _titleLable.textColor = [UIColor whiteColor];
        [self addSubview:_titleLable];
    }
    return _titleLable;
}

-(UIActivityIndicatorView *)indicator
{
    if (!_indicator) {
        _indicator = [[UIActivityIndicatorView alloc] init];
        [_indicator startAnimating];
        [self addSubview:_indicator];
    }
    return _indicator;
}


-(void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLable.frame = CGRectMake(50, 0, self.width-50, self.height);
    self.indicator.frame = CGRectMake(20, 0, 20, self.height);
}
@end
